#include "XServerClient.h"
#include "thread_pool/XThreadPool.h"
XServerClient::XServerClient()
{
    this->m_threadPool = XThreadPoolFactory::Create();
}

XServerClient::~XServerClient()
{
    delete this->m_threadPool;
    this->m_threadPool = nullptr;
}

void XServerClient::StartConnect()
{
    this->m_threadPool->init(1);
    this->m_threadPool->dispatch(this);
}
